package com.example.homeworkone_25_6_18.controller;

import com.example.homeworkone_25_6_18.pojo.Student;
import com.example.homeworkone_25_6_18.service.StudnetService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class StudnetController {

    @Autowired
    private StudnetService studnetService;

    public Student getStudent(String username, String password) {

//      log.info("username, password:{]", username, password);

      return studnetService.getStudetn(username, password);

    }
}
